package com.hkw.model;

import java.util.Objects;

/**
 * 学生实体类
 */
public class Student {
    private Integer id;
    private String name;
    private String sex;
    private String birthday;
    private String email;
    private String remark;

    public Student() {
    }

    public Student(Integer id, String name, String sex, String birthday, String email, String remark) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.remark = remark;
    }

    public Student(String name, String sex, String birthday, String email, String remark) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.email = email;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return Objects.equals(id, student.id) &&
                Objects.equals(name, student.name) &&
                Objects.equals(sex, student.sex) &&
                Objects.equals(birthday, student.birthday) &&
                Objects.equals(email, student.email) &&
                Objects.equals(remark, student.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, sex, birthday, email, remark);
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", email='" + email + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
